'use strict';

import React, { Component } from 'react';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/pageOne';
import { connect } from 'react-redux';

import PageOne from '../page/pageOne';

class PageOneContainer extends Component {
    constructor(props) {
        super(props);
        const {state, actions} = this.props;
    }
    render() {
        const {state, actions} = this.props;
        return (
            <PageOne
                {...this.props}
                {...actions} />
        );
    }
}

export default connect(state => ({
        state: state.pageOne
    }),
    (dispatch) => ({
        actions: bindActionCreators(actions, dispatch)
    })
)(PageOneContainer);
